package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_GCM_FUNCSTRUCT"
 *     
*/
public class CcpGcmFuncstruct implements Serializable {

    /** identifier field */
    private String funcGuid;

    /** nullable persistent field */
    private String msgfuncCode;

    /** nullable persistent field */
    private String funcpata;

    /** persistent field */
    private String msgorcatGuid;

    /** persistent field */
    private String isMsgcat;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpGcmFuncstruct(String funcGuid, String msgfuncCode, String funcpata, String msgorcatGuid, String isMsgcat, String reserved1, String reserved2, String reserved3) {
        this.funcGuid = funcGuid;
        this.msgfuncCode = msgfuncCode;
        this.funcpata = funcpata;
        this.msgorcatGuid = msgorcatGuid;
        this.isMsgcat = isMsgcat;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpGcmFuncstruct() {
    }

    /** minimal constructor */
    public CcpGcmFuncstruct(String funcGuid, String msgorcatGuid, String isMsgcat) {
        this.funcGuid = funcGuid;
        this.msgorcatGuid = msgorcatGuid;
        this.isMsgcat = isMsgcat;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="FUNC_GUID"
     *         
     */
    public String getFuncGuid() {
        return this.funcGuid;
    }

    public void setFuncGuid(String funcGuid) {
        this.funcGuid = funcGuid;
    }

    /** 
     *            @hibernate.property
     *             column="MSGFUNC_CODE"
     *             length="2"
     *         
     */
    public String getMsgfuncCode() {
        return this.msgfuncCode;
    }

    public void setMsgfuncCode(String msgfuncCode) {
        this.msgfuncCode = msgfuncCode;
    }

    /** 
     *            @hibernate.property
     *             column="FUNCPATA"
     *             length="10"
     *         
     */
    public String getFuncpata() {
        return this.funcpata;
    }

    public void setFuncpata(String funcpata) {
        this.funcpata = funcpata;
    }

    /** 
     *            @hibernate.property
     *             column="MSGORCAT_GUID"
     *             length="32"
     *             not-null="true"
     *         
     */
    public String getMsgorcatGuid() {
        return this.msgorcatGuid;
    }

    public void setMsgorcatGuid(String msgorcatGuid) {
        this.msgorcatGuid = msgorcatGuid;
    }

    /** 
     *            @hibernate.property
     *             column="IS_MSGCAT"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getIsMsgcat() {
        return this.isMsgcat;
    }

    public void setIsMsgcat(String isMsgcat) {
        this.isMsgcat = isMsgcat;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="50"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="100"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("funcGuid", getFuncGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpGcmFuncstruct) ) return false;
        CcpGcmFuncstruct castOther = (CcpGcmFuncstruct) other;
        return new EqualsBuilder()
            .append(this.getFuncGuid(), castOther.getFuncGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getFuncGuid())
            .toHashCode();
    }

}
